<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<script type="text/javascript" charset="utf-8"
		src="<%=basePath%>ueditor/editor_all.js"></script> 
<script type="text/javascript" charset="utf-8"
		src="<%=basePath%>ueditor/lang/zh-cn/zh-cn.js"></script>
<script type="text/javascript" charset="utf-8"
		src="<%=basePath%>ueditor/editor_config.js"></script>
<script type="text/javascript">
<!--
$("#filetype").validate({
	  rules:{
		  ddtypeName:{
			  required:true,
			 
		  }
	  },messages:{
		  ddtypeName:{
			  required:"必填",
			  
		  }
	  },
		errorPlacement: function(error, element) {                             //错误信息位置设置方法  
			 error.appendTo( element.next("span") );                            //这里的element是录入数据的对象  
		 },
		 errorElement:"span" 
 });
//-->
</script>
<c:if test="${success==true }">
   <div class="ts" style='height:40px;padding:1px;width:90%;'>
	  <div style='margin-top:15px;'><p align="center" style='color:'>添加成功</p></div>
	</div>
</c:if>
<c:if test="${success==false }">
   <div class="ts" style='height:40px;padding:1px;width:90%;'>
	  <div style='margin-top:15px;'><p align="center" style='color:'>添加失败</p></div>
	</div>
</c:if>

<div>
	<form action="<%=basePath %>backend/updatefiletype/${ddtype.ddtypeId}" method="post" id='filetype'>
           <div class="row" style='margin-top:10px;margin-left:15px;'>
               <div class="span6 input-prepend">
                 <span class="add-on">资料类型名称：</span>
                  <input class="form-control "  value='${ddtype.ddtypeName }' name="ddtypeName" id="dataName" placeholder="资料类型名称" type="text" />
                  <span></span>
               </div>
               <!-- Optional: clear the XS cols if their content doesn't match in height -->
               <div class="clearfix visible-xs"></div>
           </div>
		
		<input type="submit" class='btn btn-info' style='margin-left:400px;margin-top:30px;'value="修改">
	</form>
</div>